-- Skill Level: 357
-- Description: Delivers a fivefold attack that Plagues the target. Chance of inflicting Plague varies with TP.
-- In order to obtain Shijin Spiral, the quest Martial Mastery must be completed.
-- Shijin Spiral has a +5% attack modifier.
-- Aligned with the Flame Gorget, Light Gorget & Aqua Gorget.
-- Aligned with the Flame Belt, Light Belt & Aqua Belt.
-- Element: None
-- Skillchain Properties: Fusion/Reverberation
-- Modifiers: DEX:20~100%, depending on merit points ugrades.
-- Damage Multipliers by TP:
-- 100%TP 200%TP 300%TP
-- 1.0625 1.0625 1.0625
-----------------------------------

require("scripts/globals/status");
require("scripts/globals/settings");
require("scripts/globals/weaponskills");

function OnUseWeaponSkill(player, target, wsID)

numHits = 5;
ftp100 = 1.0625; ftp200 = 1.0625; ftp300 = 1.0625;
str_wsc = 0.0; dex_wsc = 0.2; vit_wsc = 0.0; agi_wsc = 0.0; int_wsc = 0.0; mnd_wsc = 0.0; chr_wsc = 0.0;
canCrit = false;
crit100 = 0.0; crit200 = 0.0; crit300 = 0.0;
acc100 = 0.0; acc200= 0.0; acc300= 0.0;
atkmulti = 1.05;

-- Adjust dex_wsc by merits

damage = doPhysicalWeaponskill(player,target,numHits,str_wsc,dex_wsc,vit_wsc,agi_wsc,int_wsc,mnd_wsc,chr_wsc,canCrit,crit100,crit200,crit300,acc100,acc200,acc300,atkmulti);
return damage;

end